Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Unexpected token QuotedString#65 #66

Conversation

mofantor
Copy link
Contributor

Problem Analysis:

Comments can appear on any line, including within multi-line directives. The parser must correctly handle inline comments that appear within multi-line configurations.

Fix:

Modified the InLineComment structure and logic to ensure that all functionalities of inline comments are properly handled. Specifically, this includes tracking the line numbers of inline comments so that they can be accurately output during configuration formatting.

This fix addresses the issue where the parser was failing to handle quoted strings followed by inline comments in multi-line directives, as described in issue #65.

@mofantor mofantor changed the title fix: QuotedString_ISSUE65 fix: Unexpected token QuotedString#65 Feb 23, 2025
@tufanbarisyildirim
Copy link
Owner

oh man, this is smart! thanks for the contribution @mofantor can you please make the linter happy so I can merge?

@tufanbarisyildirim tufanbarisyildirim added the good first issue Good for newcomers label Feb 23, 2025
@tufanbarisyildirim tufanbarisyildirim merged commit c03497d into tufanbarisyildirim:master Feb 25, 2025
1 check passed
@mofantor mofantor deleted the fix/#65Unexpected_token_QuotedString branch February 26, 2025 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants